package ma.platform.server.upms.rpc;

import jakarta.annotation.Resource;
import ma.platform.server.core.util.R;
import ma.platform.server.upms.api.rpc.RemoteParamService;
import ma.platform.server.upms.service.SysPublicParamService;
import org.springframework.stereotype.Component;

/**
 * Copyright:
 * Author:
 * Description:
 * Created by 李林山 on 2024/8/18
 */
@Component
public class RemoteParamServiceImpl implements RemoteParamService {

    @Resource
    private SysPublicParamService sysPublicParamService;

    @Override
    public R<String> getByKey(String publicKey) {
        return R.ok(sysPublicParamService.getSysPublicParamKeyToValue(publicKey));
    }
}
